package org.xin.security.service.impl;

import org.xin.security.pojo.entity.SysRole;
import org.xin.security.mapper.SysRoleMapper;
import org.xin.security.service.ISysRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import org.xin.framework.base.service.impl.IBaseServiceImpl;

/**
* <p>
    * 系统模块-角色信息表 服务实现类
    * </p>
*
* @author: xin
* @date: Create in 2021-09-29
*/
@Slf4j
@Service
public class SysRoleServiceImpl extends IBaseServiceImpl<SysRole, SysRoleMapper> implements ISysRoleService {
    @Override
    public SysRole selectRoleByCode(String code) {
        lambdaQueryWrapper().eq(SysRole::getCode, code);
        return baseMapper.selectOne(lambdaQueryWrapper);
    }
}
